<style>
.currentAuction_<?=$this->type?>{
	background:repeat-x #FFFFFF bottom;
	text-decoration: underline;
}
</style>
<div class="frame_auctionDiv">
	<div class="pmflDiv">
		<li><a class="currentAuction_all" href="adminb-auction-winauction?type=all">&nbsp;A l l&nbsp;</a></li>
		<li><a class="currentAuction_paid" href="adminb-auction-winauction?type=paid">Has paid</a></li>
		<li><a class="currentAuction_notpaid" href="adminb-auction-winauction?type=notpaid">Not yet paid</a></li>
		<li style="margin-left:20px"><a class="currentAuction_add" href="adminb-recharge-index">Recharge Account</a></li>
	</div>
	<div class="clear"></div>
	<br />
	<?if($this->pageArray['pageNumber']>0):?>
		<form name="helpIndexForm" id="helpIndexForm" action="adminb-auction-contact" method="post">
			<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
				<tr>
					<td width="20%" class="bbgg">
						<strong>Product name</strong>
					</td>
					<td width="20%" class="bbgg">
						<strong>Bid time</strong>
					</td>
					<td width="20%" class="bbgg">
						<strong>Price</strong>
					</td>
					<td width="20%" class="bbgg">
						<strong>More</strong>
					</td>
					<td width="20%" class="bbgg">
						<strong>Operate</strong>
					</td>
				</tr>		
				<? for($i=0;$i<count($this->itemArray);$i++):?>						
				<tr bgcolor="#FFFFFF">
					<td align="center" valign="middle">
						<div><img src="<?=$this->itemArray[$i]['cut_url']?>" width="50px" border="0" /></div>
						<div align="center"><?=$this->itemArray[$i]['subject']?></div>
					</td>
					<td align="center">
						<?=date('Y-m-d H:i:s',$this->itemArray[$i]['win_time'])?>
					</td>
					<td align="center">
						$<?=$this->itemArray[$i]['fixed_price']?>
					</td>
					<td align="center">
						<a href="adminb<?=CHOSING_DE?>auction<?=CHOSING_DE?>more?itemid=<?=$this->itemArray[$i]['itemid']?>">Check it</a>
					</td>
					<td align="center">
						<input type="hidden" name="itemArray[]" value="<?=$this->itemArray[$i]['itemid']?>" />
						<?if($this->itemArray[$i]['has_paid']=='0'):?>
							<a onclick="return shouldCancel()" href="adminb-auction-cancel?itemid=<?=$this->itemArray[$i]['itemid']?>">Cancel order</a>
						<?else:?>
							Has paid
						<?endif;?>
					</td>
				</tr>
				<? endfor;?>													
			</table>
			<?if($this->type=="notpaid"):?>
			<div style="margin:10px;text-align:center">
				<input style="width:80px;height:30px"  type="submit" value="pay"/>　
			</div>
			<?endif;?>
			<br />
			<div class="factory_page">All <?=$this->pageArray['pageNumber']?> page(s)　<?=$this->pageString?></div>
		</form>
	<?else:?>
		<div style="padding:10px">
			<?=$this->getMsg('No product you have bid on succeessfully !');?>
		</div>
	<?endif;?>
</div>
<script>
function shouldCancel(){
	if(confirm("Confirm to cancel this order?")){
		return true;
	}else{
		return false;
	}
}
</script>